<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>Blog</title>
    <link rel="stylesheet" href="/stylesheets/style.css">
</head>
<body>
<header>
    <h1>{{title}}</h1>
</header>

<nav>
    <span><a title="主页f" href="/">home</a></span>
    <span><a title="存档" href="/archive">archive</a></span>
    <span><a title="标签" href="/tags">tags</a></span>
    <span><a title="友情链接" href="/links">links</a></span>
    {{#if user}}
        <span><a title="上传" href="/upload">upload</a></span>
        <span><a title="发表" href="/post">post</a></span>
        <span><a title="登出" href="/logout">logout</a></span>
    {{else}}
        <span><a title="登录" href="/login">login</a></span>
        <span><a title="注册" href="/reg">register</a></span>
    {{/if}}
    <span><form action="/search" method="GET"><input type="text" name="keyword" placeholder="SEARCH" class="search" /></form></span>
</nav>

<article>
    {{#if success}}
        <div>{{success}}</div>
    {{/if}}
    {{#if error}}
        <div>{{error}}</div>
    {{/if}}

    {{!其余所有的模版都将 "继承" 该模版，即替换掉 body 部分}}
    {{{body}}}
</article>

</body>
</html>